using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmAprStdScoreDtls")]
    public class AprStdScoreDtls
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "StdDtlsId", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public int StdDtlsId { get; set; }

		[ForeignKey("Apr")]
		[DataMember, Display(Name = "AprId", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public Nullable<int> AprId { get; set; }

		[ForeignKey("StdScore")]
		[DataMember, Display(Name = "StdScoreId", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public Nullable<int> StdScoreId { get; set; }

		[DataMember, Display(Name = "ScoreLevelNo", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public Nullable<decimal> ScoreLevelNo { get; set; }

		[DataMember, Display(Name = "ScoreLevelName", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public string ScoreLevelName { get; set; }

		[DataMember, Display(Name = "ScoreMin", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public Nullable<decimal> ScoreMin { get; set; }

		[DataMember, Display(Name = "ScoreMax", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public Nullable<decimal> ScoreMax { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.AprStdScoreDtlsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual PsCommand Apr { get; set; }

		public virtual AppraisalStdScore StdScore { get; set; }

    }
}